import service from '@/utils/request'

export const yrzyslide = () => {
  return service({
    url: '/yrzy/yrzyGetSlide',
    method: 'get'
  })
}

export const yrzyDelSlide = (params) => {
  return service({
    url: '/yrzy/yrzyDeleteSlide',
    method: 'delete',
    params
  })
}

export const yrzySlideDetail = (params) => {
  return service({
    url: '/yrzy/yrzyGetidSlide',
    method: 'get',
    params
  })
}

export const yrzyUpdateSlide = (data) => {
  return service({
    url: '/yrzy/yrzyUpdateSlide',
    method: 'put',
    data
  })
}

export const yrzyCreateSlide = (data) => {
  return service({
    url: '/yrzy/yrzyCreateSlide',
    method: 'post',
    data
  })
}
